#include "bga/window/MouseEvent.h"

namespace bga
{

MouseEvent::MouseEvent() : bga::Event<bga::Window>(), code(MouseButton::NONE), x(0), y(0)
{
}

MouseEvent::MouseEvent(const bga::Window &sender) : bga::Event<bga::Window>(sender), code(MouseButton::NONE), x(0), y(0)
{
}

MouseEvent::~MouseEvent()
{
}

void MouseEvent::setMouseButton(MouseButton::Code code)
{
    this->code = code;
}

MouseButton::Code MouseEvent::getMouseButton() const
{
    return this->code;
}

void MouseEvent::setX(unsigned int x)
{
    this->x = x;
}

unsigned int MouseEvent::getX() const
{
    return this->x;
}

void MouseEvent::setY(unsigned int y)
{
    this->y = y;
}

unsigned int MouseEvent::getY() const
{
    return this->y;
}

int MouseEvent::getDeltaWheel() const
{
    return this->delta;
}

void MouseEvent::setDeltaWheel(int delta)
{
    this->delta = delta;
}

}
